package com.cq.hd.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cq.hd.product.api.dto.ActiveLabelDto;
import com.cq.hd.product.api.vo.LabelReferenceStatVo;
import com.cq.hd.product.po.TbActiveLabelPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TbActiveLabelMapper extends BaseMapper<TbActiveLabelPo> {

    int deleteByActiveId(@Param("activeId") Long activeId);

    List<ActiveLabelDto> selectActiveLabels(@Param("activeId") Long activeId);

    List<LabelReferenceStatVo> countLabelReferences(@Param("labelIds") List<Long> labelIds);

}
